Integrand size = 24, antiderivative size = 139 \[ \int \sec (c+d x) (a+i a \tan (c+d x))^{7/2} \, dx=\frac {256 i a^4 \sec (c+d x)}{35 d \sqrt {a+i a \tan (c+d x)}}+\frac {64 i a^3 \sec (c+d x) \sqrt {a+i a \tan (c+d x)}}{35 d}+\frac {24 i a^2 \sec (c+d x) (a+i a \tan (c+d x))^{3/2}}{35 d}+\frac {2 i a \sec (c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d} \]
[Out]
Time = 0.17 (sec) , antiderivative size = 139, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {3575, 3574} \[ \int \sec (c+d x) (a+i a \tan (c+d x))^{7/2} \, dx=\frac {256 i a^4 \sec (c+d x)}{35 d \sqrt {a+i a \tan (c+d x)}}+\frac {64 i a^3 \sec (c+d x) \sqrt {a+i a \tan (c+d x)}}{35 d}+\frac {24 i a^2 \sec (c+d x) (a+i a \tan (c+d x))^{3/2}}{35 d}+\frac {2 i a \sec (c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d} \]
[In]
[Out]
Rule 3574
Rule 3575
Rubi steps \begin{align*} \text {integral}& = \frac {2 i a \sec (c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}+\frac {1}{7} (12 a) \int \sec (c+d x) (a+i a \tan (c+d x))^{5/2} \, dx \\ & = \frac {24 i a^2 \sec (c+d x) (a+i a \tan (c+d x))^{3/2}}{35 d}+\frac {2 i a \sec (c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}+\frac {1}{35} \left (96 a^2\right ) \int \sec (c+d x) (a+i a \tan (c+d x))^{3/2} \, dx \\ & = \frac {64 i a^3 \sec (c+d x) \sqrt {a+i a \tan (c+d x)}}{35 d}+\frac {24 i a^2 \sec (c+d x) (a+i a \tan (c+d x))^{3/2}}{35 d}+\frac {2 i a \sec (c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d}+\frac {1}{35} \left (128 a^3\right ) \int \sec (c+d x) \sqrt {a+i a \tan (c+d x)} \, dx \\ & = \frac {256 i a^4 \sec (c+d x)}{35 d \sqrt {a+i a \tan (c+d x)}}+\frac {64 i a^3 \sec (c+d x) \sqrt {a+i a \tan (c+d x)}}{35 d}+\frac {24 i a^2 \sec (c+d x) (a+i a \tan (c+d x))^{3/2}}{35 d}+\frac {2 i a \sec (c+d x) (a+i a \tan (c+d x))^{5/2}}{7 d} \\ \end{align*}
Time = 1.07 (sec) , antiderivative size = 109, normalized size of antiderivative = 0.78 \[ \int \sec (c+d x) (a+i a \tan (c+d x))^{7/2} \, dx=\frac {2 a^3 \sec ^2(c+d x) (i \cos (c-2 d x)+\sin (c-2 d x)) (75+102 \cos (2 (c+d x))+19 i \sec (c+d x) \sin (3 (c+d x))+14 i \tan (c+d x)) \sqrt {a+i a \tan (c+d x)}}{35 d (\cos (d x)+i \sin (d x))^3} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 234 vs. \(2 (115 ) = 230\).
Time = 7.88 (sec) , antiderivative size = 235, normalized size of antiderivative = 1.69
method | result | size |
default | \(\frac {2 \left (-\tan \left (d x +c \right )+i\right )^{3} a^{3} \sqrt {a \left (1+i \tan \left (d x +c \right )\right )}\, \left (128 i \left (\cos ^{3}\left (d x +c \right )\right ) \sin \left (d x +c \right )-76 i \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )-128 \left (\cos ^{4}\left (d x +c \right )\right )-22 i \cos \left (d x +c \right ) \sin \left (d x +c \right )-204 \left (\cos ^{3}\left (d x +c \right )\right )+5 i \sin \left (d x +c \right )-54 \left (\cos ^{2}\left (d x +c \right )\right )+27 \cos \left (d x +c \right )+5\right )}{35 d \left (8 \left (\cos ^{4}\left (d x +c \right )\right )+4 \left (\cos ^{3}\left (d x +c \right )\right )+8 i \left (\cos ^{3}\left (d x +c \right )\right ) \sin \left (d x +c \right )-8 \left (\cos ^{2}\left (d x +c \right )\right )+4 i \left (\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )-3 \cos \left (d x +c \right )-4 i \cos \left (d x +c \right ) \sin \left (d x +c \right )+1-i \sin \left (d x +c \right )\right )}\) | \(235\) |
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 109, normalized size of antiderivative = 0.78 \[ \int \sec (c+d x) (a+i a \tan (c+d x))^{7/2} \, dx=-\frac {16 \, \sqrt {2} {\left (-35 i \, a^{3} e^{\left (6 i \, d x + 6 i \, c\right )} - 70 i \, a^{3} e^{\left (4 i \, d x + 4 i \, c\right )} - 56 i \, a^{3} e^{\left (2 i \, d x + 2 i \, c\right )} - 16 i \, a^{3}\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}}}{35 \, {\left (d e^{\left (6 i \, d x + 6 i \, c\right )} + 3 \, d e^{\left (4 i \, d x + 4 i \, c\right )} + 3 \, d e^{\left (2 i \, d x + 2 i \, c\right )} + d\right )}} \]
[In]
[Out]
Timed out. \[ \int \sec (c+d x) (a+i a \tan (c+d x))^{7/2} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \sec (c+d x) (a+i a \tan (c+d x))^{7/2} \, dx=\int { {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {7}{2}} \sec \left (d x + c\right ) \,d x } \]
[In]
[Out]
\[ \int \sec (c+d x) (a+i a \tan (c+d x))^{7/2} \, dx=\int { {\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {7}{2}} \sec \left (d x + c\right ) \,d x } \]
[In]
[Out]
Time = 6.74 (sec) , antiderivative size = 286, normalized size of antiderivative = 2.06 \[ \int \sec (c+d x) (a+i a \tan (c+d x))^{7/2} \, dx=\frac {a^3\,{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\sqrt {a-\frac {a\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}-\mathrm {i}\right )\,1{}\mathrm {i}}{{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1}}\,16{}\mathrm {i}}{d}-\frac {a^3\,{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\sqrt {a-\frac {a\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}-\mathrm {i}\right )\,1{}\mathrm {i}}{{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1}}\,16{}\mathrm {i}}{d\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}+\frac {a^3\,{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\sqrt {a-\frac {a\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}-\mathrm {i}\right )\,1{}\mathrm {i}}{{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1}}\,48{}\mathrm {i}}{5\,d\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^2}-\frac {a^3\,{\mathrm {e}}^{-c\,1{}\mathrm {i}-d\,x\,1{}\mathrm {i}}\,\sqrt {a-\frac {a\,\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}\,1{}\mathrm {i}-\mathrm {i}\right )\,1{}\mathrm {i}}{{\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1}}\,16{}\mathrm {i}}{7\,d\,{\left ({\mathrm {e}}^{c\,2{}\mathrm {i}+d\,x\,2{}\mathrm {i}}+1\right )}^3} \]
[In]
[Out]